package com.frame.database;

public class TableKey {

	private String tableName;
	private int length;
	private String type;
	private String keyCode;

	public TableKey(String tableName){
		this.tableName=tableName;
		this.keyCode="id";
		this.length=9;
		this.type="integer";
	}
	public TableKey(String tableName,String keyCode,int length,String type){
		this.tableName=tableName;
		this.keyCode=keyCode;
		this.length=length;
		this.type=type;
	}
	public TableKey(String tableName,String keyCode,int length){
		this.tableName=tableName;
		this.keyCode=keyCode;
		this.length=length;
		this.type="integer";
	}
	public String getTableName() {
		return tableName;
	}
	public void setTableName(String tableName) {
		this.tableName = tableName;
	}
	public int getLength() {
		return length;
	}
	public void setLength(int length) {
		this.length = length;
	}
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	public String getKeyCode() {
		return keyCode;
	}
	public void setKeyCode(String keyCode) {
		this.keyCode = keyCode;
	}

}
